< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03104600.xhp

(section: equalunoobjects) (bookmark: bm_id3149205)
EqualUnoObjects function

EqualUnoObjects関数

EqualUnoObjects Function [Runtime]
EqualUnoObjects 関数 [実行時](hd_id3149205.1)

Returns True if the two specified Basic Uno objects represent the same Uno object instance.
2 つの Basic Uno オブジェクトが同一の Uno オブジェクトインスタンスを示す場合、True を返します。(par_id3145090.2)

(/section: equalunoobjects)

Syntax:
構文:(hd_id3148538.3)

EqualUnoObjects( oObj1, oObj2 )
EqualUnoObjects( oObj1, oObj2 )(par_id3150669.4)

Return value:
戻り値:(hd_id3150984.5)

Bool
ブール型(par_id3154285.6)

Example:
例:(hd_id3145315.7)

// Copy of objects -> same instance
// Copy of objects -> same instance(par_id3156024.8)

oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )
oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )(par_id3154923.9)

oIntro2 = oIntrospection
oIntro2 = oIntrospection(par_id3147559.10)

print EqualUnoObjects( oIntrospection, oIntro2 )
print EqualUnoObjects( oIntrospection, oIntro2 )(par_id3150541.11)

// Copy of structs as value -> new instance
// Copy of structs as value -> new instance(par_id3153525.12)

Dim Struct1 as new com.sun.star.beans.Property
Dim Struct1 as new com.sun.star.beans.Property(par_id3154366.13)

Struct2 = Struct1
Struct2 = Struct1(par_id3154348.14)

print EqualUnoObjects( Struct1, Struct2 )
print EqualUnoObjects( Struct1, Struct2 )(par_id3154125.15)


< Prev / Next >